Skip to content

test: reserve sample deterministic test + benchmarks#5374

Merged
acud merged 5 commits intomasterfrom
add-sample-test-norandom
Feb 24, 2026
Merged

test: reserve sample deterministic test + benchmarks#5374
acud merged 5 commits intomasterfrom
add-sample-test-norandom

Conversation

@acud
Copy link
Contributor

@acud acud commented Feb 18, 2026

Description

Adds a non-random test to the reserve sample and some benchmarks as a baseline.

Needed for verifying that ReserveSample reaches the same result deterministically (and covers an e2e over all the hashing operations involved).

Benchmarks are needed for ReserveSample optimization.

@acud acud force-pushed the add-sample-test-norandom branch from 7e8d8b3 to 15cb058 Compare February 18, 2026 22:46
@acud acud force-pushed the add-sample-test-norandom branch from 15cb058 to 058395c Compare February 19, 2026 02:51
@acud acud changed the title chore: add a non-random test to reserve sample chore: add a non-random test + benchmarks to reserve sample Feb 19, 2026
@acud acud changed the title chore: add a non-random test + benchmarks to reserve sample test: ReserveSample deterministic test + benchmarks Feb 19, 2026
@acud acud changed the title test: ReserveSample deterministic test + benchmarks test: reserve sample deterministic test + benchmarks Feb 19, 2026
}
}

// Benchmark results:
Copy link
Contributor

@akrem-chabchoub akrem-chabchoub Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it is intentional to keep benchmark results here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so that when we improve on them later on, that there's a baseline to compare it against

}

func TestDecryptRef_Publisher(t *testing.T) {
t.Parallel()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for flaky test ? or something else ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@acud acud merged commit f27d3f9 into master Feb 24, 2026
30 of 32 checks passed
@acud acud deleted the add-sample-test-norandom branch February 24, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants